    //抬头信息选择框
    public PopupWindow mSelectTitlePopupWindow;

    /**
     * 初始化抬头选择框
     * @param titleList
     * @return
     */
    private PopupWindow initSelectTitlePopWindow(List<InvoiceTitleInfo> titleList) {
        View view = View.inflate(this, R.layout.popupwindow_select_title, null);

        RecyclerView recyclerViewTitle = (RecyclerView) view.findViewById(R.id.recycler_view_title);
        recyclerViewTitle.setLayoutManager(new LinearLayoutManager(this));
        InvoiceTitleInfoAdapter adapter = new InvoiceTitleInfoAdapter(new InvoiceTitleInfoAdapter.Listener() {
            @Override
            public void onItemClicked(InvoiceTitleInfo info) {
                dismissSelectTitlePopWindow();
                fillInvoiceTitle(info);
            }
        }, titleList);
        recyclerViewTitle.setAdapter(adapter);

        TextView textViewCancel = (TextView) view.findViewById(R.id.text_view_cancel);
        textViewCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismissSelectTitlePopWindow();
            }
        });

        PopupWindow popupWindow = new PopupWindow(view, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, true);
        popupWindow.setBackgroundDrawable(new BitmapDrawable()); // 设置一下此参数，点击外边可消失
        popupWindow.setOutsideTouchable(true); // 设置点击窗口外边窗口消失
        popupWindow.setAnimationStyle(R.style.popup_animation);
        popupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
            @Override
            public void onDismiss() {
                setWindowAlpha(1f);
            }
        });
        return popupWindow;
    }

    /**
     * 显示抬头选择框
     * @param titleList
     */
    public void showSelectTitlePopWindow(List<InvoiceTitleInfo> titleList) {
        mSelectTitlePopupWindow = initSelectTitlePopWindow(titleList);
        setWindowAlpha(0.5f);
        mSelectTitlePopupWindow.showAtLocation(activityInvoice, Gravity.BOTTOM, 0, 0);
    }

    /**
     * 隐藏抬头显示框
     */
    public void dismissSelectTitlePopWindow() {
        if (mSelectTitlePopupWindow != null && mSelectTitlePopupWindow.isShowing()) {
            mSelectTitlePopupWindow.dismiss();
        }
        setWindowAlpha(1f);
    }

    /**
     * 设置打开PopupWindow的Activity的模糊度
     * @param alpha
     */
    public void setWindowAlpha(float alpha) {
        WindowManager.LayoutParams layoutParam = getWindow().getAttributes();
        layoutParam.alpha = alpha;
        getWindow().setAttributes(layoutParam);
    }